<extend name="Base/common"/>

<block name="header">

</block>

<block name="side">
    <!-- 左侧 nav-->
</block>


<block name="body">
    <link rel="stylesheet" type="text/css" href="../../../../../Public/Home/css/font-awesome.min.css">
    <link rel="stylesheet" href="../../../../../Public/Home/css/jquery.paginate.css" />
    <link rel="stylesheet" href="../../../../../Public/Home/css/jquery.yhhDataTable.css" />
    <script type="text/javascript" src="../../../../../Public/Home/js/jquery.min.js"></script>
    <script type="text/javascript" src="../../../../../Public/Home/js/jquery.paginate.js" ></script>
    <script type="text/javascript" src="../../../../../Public/Home/js/jquery.yhhDataTable.js" ></script>

    <div class="hanqing">
        <div class="nk">
            <ul>
                <li>所有</li>
                <li>新币上市</li>
                <li>市值趋势</li>
            </ul>
        </div>
    </div>
    <div id="top">
    <div class="biaoge">
        <table id="testtable2">
            <thead><tr>
                <th>#</th><th>名称</th><th>通流市值</th><th>价格</th><th>流通数量</th><th>成交额(24h)</th><th>涨幅(24h)</th><th>价格趋势(7d)</th>
            </tr></thead>
            <tbody>

            </tbody>
        </table>
    </div>
    <div class="biagoyo">
        <h2>最新公告</h2>
        <volist name="list" id="vo" offset = '0' length = '10'>
        <ul>
            <li><a>{$vo.title}<span>06-27 20:40</span></a></li>
            <!--<li><a>【系统】BCEX首发上线HSC/ETH<span>06-27 20:40</span></a></li>-->
            <!--<li><a>【系统】NKN交易排名实力榜<span>06-27 20:40</span></a></li>-->
            <!--<li><a>【系统】ZB.com关于开发ZB生态充值和提现<span>06-27 20:40</span></a></li>-->
            <!--<li><a>【系统】关于PLC上线交易的公告<span>06-27 20:40</span></a></li>-->
            <!--<li><a>PPT/USDT上线超级豪礼享不停<span>06-27 20:40</span></a></li>-->
        </ul>
        </volist>
    </div>

    </div>
    <script>
        $(document).ready(function(){
            var testdata1 = [['1','BTC-比特币','￥6,943亿','￥40,00','1,720万','￥2,284,430万','0.91%','0'],
                ['2','ETH-以太仿','￥7,943亿','￥25,00','11,720万','￥8,284,430万','1.91%','0'],
                ['3','XRP-瑞波币','￥5,933亿','￥11,00','1,0万','￥12,284,430万','8.91%','0'],
                ['4','BCH-比特现金','￥3,365亿','￥3,00','8,0万','￥62,284,430万','6.91%','0'],
                ['5','EOS-柚子','￥9,9856亿','￥74,00','6,250万','￥12,284万','3.91%','0'],
                ['6','LTC-莱特币','￥1,458亿','￥49,00','45,580万','￥8,430万','2.91%','0'],
                ['7','XLM-恒星币','￥8,456亿','￥21,00','85,0万','￥55,852,430万','1.91%','0'],
                ['8','ADA-艾特币','￥3,869亿','￥2,00','0,720万','￥9,475,75','9.91%','0'],
                ['9','ETH-以太仿','￥7,943亿','￥25,00','11,720万','￥8,284,430万','1.91%','0'],
                ['10','XRP-瑞波币','￥5,933亿','￥11,00','1,0万','￥12,284,430万','8.91%','0'],
                ['11','BCH-比特现金','￥3,365亿','￥3,00','8,0万','￥62,284,430万','6.91%','0'],
                ['12','EOS-柚子','￥9,9856亿','￥74,00','6,250万','￥12,284万','3.91%','0'],
                ['13','LTC-莱特币','￥1,458亿','￥49,00','45,580万','￥8,430万','2.91%','0'],
                ['14','XLM-恒星币','￥8,456亿','￥21,00','85,0万','￥55,852,430万','1.91%','0'],
                ['15','ADA-艾特币','￥3,869亿','￥2,00','0,720万','￥9,475,75','9.91%','0'],
                ['16','ETH-以太仿','￥7,943亿','￥25,00','11,720万','￥8,284,430万','1.91%','0'],
                ['17','XRP-瑞波币','￥5,933亿','￥11,00','1,0万','￥12,284,430万','8.91%','0'],
                ['18','BCH-比特现金','￥3,365亿','￥3,00','8,0万','￥62,284,430万','6.91%','0'],
                ['19','EOS-柚子','￥9,9856亿','￥74,00','6,250万','￥12,284万','3.91%','0'],
                ['20','LTC-莱特币','￥1,458亿','￥49,00','45,580万','￥8,430万','2.91%','0'],
                ['21','XLM-恒星币','￥8,456亿','￥21,00','85,0万','￥55,852,430万','1.91%','0'],
                ['22','ADA-艾特币','￥3,869亿','￥2,00','0,720万','￥9,475,75','9.91%','0'],];
            $('#testtable2').yhhDataTable({
                'paginate':{
                    'changeDisplayLen':true,
                    'type':'updown',
                    'visibleGo': true
                },
                'tbodyRow':{
                    'zebra':true
                },
                'tbodyData':{
                    'enabled':true,  /*是否传入表格数据*/
                    'source':testdata1 /*传入的表格数据*/
                }
            });

            /*ajax参数*/
            //	'ajaxParam': {
            //		'url':projectHttpAjax.baseUrl + listActionName, /*url地址*/
            //		'type':'GET', /*ajax传输方式*/
            //		'dataType':'jsonp', /*ajax传送数据格式*/
            //		'jsonp':'callback', /*dataType是jsonp的时候，传递给请求处理程序或页面的，用以获得jsonp回调函数名的参数名*/
            //		'jsonpCallback':'jsonpCallBack', /*dataType是jsonp的时候，自定义的jsonp回调函数名称*/
            //		'data':data /*传到服务器的数据*/
            //	},
            //	'sendDataHandle':function(d){
            //		d.pageNumber = d.currentPage;
            //		delete d.currentPage;
            //		d.pageCount = d.displayDataLen;
            //		delete d.displayDataLen;
            //		console.log('检索结果入参：' + JSON.stringify(d));
            //		return d;
            //	},  /*传递到服务器的数据预处理方法*/
            //	'backDataHandle':function(d){
            //		console.log('检索结果出参：' + JSON.stringify(d));
            //		var r = {'errFlag':false,'errMsg':'','dataLen':0,'data':[],'origData':null};
            //		if (d == null) {
            //			r.errFlag=true,r.errMsg=_ERR_MSG;
            //		} else if (d.flag != '0') {
            //			r.errFlag=true,r.errMsg=d.message;
            //		} else {
            //			r.errMsg=d.message,r.dataLen=d.data.totalCount,r.data=d.data.list;
            //			r.origData=d.data;
            //		}
            //		return r;
            //	},  /*预处理从服务器的接收数据或者js传入的数据*/
            //	'beforeShow':function(){loadingDialog.show();},  /*显示之前的额外处理事件*/
            //	'afterShow':function(errFlag,errMsg,dataLen,listData){
            //		loadingDialog.hide();
            //		if (errFlag) {
            //			$page.find('.recorder-counts').text(0);
            //			msgDialog.show(errMsg);
            //		} else {
            //			$page.find('.recorder-counts').text(listData.totalCount);
            //			$table.find('.operation-btn').button();
            //			$table.find('.disable-operation-btn').button().button('disable');
            //		}
            //		$table.find('.results-checkbox-all').removeClass('fa-check-square-o').addClass('fa-square-o');
            //	}  /*显示之后的额外处理事件*/
            //});*/

            /*更新表格*/
            var refreshTable = function(data,page){
                if ($.isEmptyObject(data)) data = {};
                var toData = {
                    'ajaxParam':{'data':data}
                }
                if (!$.isEmptyObject(page)){
                    toData.paginate = {};
                    toData.paginate.currentPage = page;
                }
                var $table = $page.find('.result-list');
                $table.yhhDataTable('refresh',toData);
            }
        });
    </script>
</block>


